{{if $CurrentUser['id']}}

		<div class="ui-portlet">
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;{{__('Personal Center')}}</a></li>
			  <li class="active">我的团队</li>
			</ol>
		</div>        
       <hr>
       <div class="mb10">
       		<a class="btn btn-primary" href="/teams/add">新增团队</a>
       </div>
       <br/>
       
       <div class=" ui-portlet" id="Team-mine-list">
		
       	{{$page_navi}}
	       <div class="row">
	       {{loop $datalist $k $item}}
	       	<div class="col-md-4">
	       		<div class="appmsg article-msg clearfix" id="wx-msg-{{$item['Team']['id']}}"  data-id="{{$item['Team']['id']}}">
		       		<div class="appmsg_content">
			       		<p class="title">
			       			<a href="/teams/view/{{$item['Team']['id']}}">{{$item['Team']['name']}}</a>
			       		</p>
			       		<p style="font-weight:normal;font-size: 12px;">{{$item['Team']['created']}}</p>
			       		{{if $item['Team']['coverimg']}}
			       		<p>{{$this->html->image($item['Team']['coverimg'])}}</p>
			       		{{/if}}
		       		</div>
		       		<div class="appmsg_opr clearfix">
		       			{{$this->Html->link('<i data-toggle="tooltip" target="_blank" data-container="body" data-placement="top" title="'.__('Edit').'" class="fa fa-edit"></i>', array('controller'=>'teams','action' => 'edit', $item['Team']['id']),array('class'=>'col-xs-6 opr-edit','data-id'=>$item['Team']['id'],'escape'=>false))}}
		       			<a tabindex="0"  role="button" href="javascript:void(0)" data-url="{{$this->Html->url('/teams/delete/'.$item['Team']['id'])}}" class="col-xs-6 delete-pop" data-content="确定永久删除此素材？"><i data-toggle="tooltip" data-container="body" data-placement="top" title="{{__('Delete')}}" class="fa fa-remove"></i></a>
		       		</div>
	       		</div>
	       	</div>
	       	
	       	{{if $k%3 == 2}} <div class="clearfix"></div> {{/if}}
	       	
	       	
	  		{{/loop}}
	    	</div>
    	{{$page_navi}}
    	
    	</div>
{{else}}
<div class="container">
 	<div class=" ui-portlet" id="Team-mine-list">	您还没有登录，请<a href="/users/login" onclick="return checkLogin();">登录</a>后查看。</div>
</div>
{{/if}}
    	
